#include "RoomDouble.h"
#include "Reservation.h"

RoomDouble::RoomDouble(int roomNumber) : Room(roomNumber) {
	roomType = Room::DOUBLE;
	bedCount = 2;
	extraBedAvailable = false;
}

RoomDouble::RoomDouble(ifstream & inn, int roomNumber) : Room(inn, roomNumber) {
	roomType = Room::DOUBLE;
	inn >> extraBedAvailable;	inn.ignore();
}

void RoomDouble::WriteToFile(ofstream &file) {
	Room::WriteToFile(file);
	
	file << extraBedAvailable;
	file << endl;
}

void RoomDouble::display() {
	printf("\n\tThis is a double room");
		
	Room::display();
}

int RoomDouble::getBedCount() {
	return bedCount + extraBedAvailable;
}